package com.xuecheng.execption;

import lombok.Data;

/**
 * @author 小班哥
 * @version 1.0
 * @date 2023/3/14 15:47
 * @description 学成在线项目异常类
 */


public class XueChengPlusException extends RuntimeException{

    private String Message;

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public XueChengPlusException() {
    }

    public XueChengPlusException(String message) {
        super(message);
        this.Message = message;
    }

    public static void cate(String message){
        throw new RuntimeException(message);
    }

    public static void cate(UnifyExceptionMessage unifyExceptionMessage){
        throw new RuntimeException(unifyExceptionMessage.getErrMessage());
    }


}
